package com.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Data
public class CommentVo implements Serializable {

    private Long id;
    private String nickname;
    private String content;
    private String avatar;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Long parentCommentId;

    //回复评论
    private List<CommentVo> replyComments = new ArrayList<>();
    private String parentComment;
    private String parentNickname;


}
